package org.example.service.impl;


import org.example.mapper.MushroomMapper;
import org.example.pojo.Mushroom;
import org.example.pojo.MapData;
import org.example.pojo.ScatterData;

import org.example.service.MushroomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class MushroomServiceImpl implements MushroomService {


    @Autowired
    private MushroomMapper categoryMapper;



    @Override
    public List<Mushroom> selectCategoryList(String type) {
        return categoryMapper.selectCategoryListByType(type);
    }



    @Override
    public List<ScatterData> selectScatterDataList(String type) {
        return categoryMapper.selectScatterDataListByType(type);
    }

    @Override
    public List<MapData> MapDataList() {
        return categoryMapper.selectMapDataList();
    }




}
